package com.zpark.oop.day04;

/**
 * @PackageName: com.zpark.oop.day04
 * @ClassName: Person
 * @Description:
 * @author: RZS
 * @date: 2024/10/11  15:31
 */
public class Person {
    private String name;
    private int age;
    private String gender;
    private String address;

    public Person(String name) {
        System.out.println("Person无参构造方法");
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public void eat() {
        System.out.println("吃饭");
    }
}
